<!DOCTYPE html>
<html lang="en">
<head>
    <{include file="header.html"}>
    <title>基本资料设置-<{$user_data['school_name']}>-德安信会计在线教育平台</title>

</head>
<body>
<div class="wrap">
    <!--star left-->
    <div class="column">
        <{include file="left_menu.html"}>
    </div>
    <div id="ContMianBox">
       <!--star子栏目-->
            <div class="sub-colum">
                <div class="tit"><{$left_menu_min.menu}></div>
                <ul>
                    <li class="curr"><a href="/setting/base_info">个人资料</a></li>
                </ul>
            </div>
        <!--end子栏目-->
        <!--end left-->
        <div class="container narrow">
            <!--star conter-->
            <div class="cetContent">
                <div class="tit p-lr20">
                    <span class="curr"><a href="/setting/info">基本资料设置</a></span>
                </div>
                <!--star内容区域-->
                <div class="mainScroll">
                    <div class="mainContainer line-all">
                        <!--star tabMainCont-->
                        <div class="tabMainCont">
                            <form class="layui-form" method="post" enctype="multipart/form-data">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">姓名</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="teacher_name" name="teacher_name" value="<{$info.teacher_name|default:''}>" style="width: 400px;" lay-verify="required" autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <label class="layui-form-label">推流地址</label>
                                    <div class="layui-input-block">
                                        <input type="text" value="<{$ws_config.pre_ws_publish_url}><{$info.stream_id|default:''}>" style="width: 400px;" disabled="disabled" autocomplete="off" class="layui-input">
                                    </div>
                                </div>


                                <div class="layui-form-item">
                                    <label class="layui-form-label">手机号</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="mobile" value="<{$info.mobile|default:''}>" autocomplete="off" lay-verify="phone" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-form-item layui-form-text">
                                    <input type="hidden" id="token" value="<{'VIMG'|get_qiniu_token}>" />
                                    <label class="layui-form-label">头像</label>
                                    <div class="layui-input-block" style="margin-top: 5px;">
                                        <div id="uploader1" class="upload_box" style="float:left; width:420px;">
                                            <div class="queueList">
                                                <div id="dndArea1" class="placeholder dndArea">
                                                    <div id="filePicker1" class="filePicker"></div>
                                                    <p>或将照片拖到这里，最多可上传<script>document.write(fileNumLimit);</script>张图片</p>
                                                </div>
                                            </div>
                                            <div class="statusBar" style="display:none;">
                                                <div class="progress">
                                                    <span class="text">0%</span>
                                                    <span class="percentage"></span>
                                                </div><div class="info"></div>
                                                <div class="btns">
                                                    <div id="filePickerBut1" class="filePickerBut"></div><div class="uploadBtn">开始上传</div>
                                                </div>
                                            </div>
                                            <div class="upload_img_input" input_name='school_logo'></div>
                                        </div>
                                        <{if isset($info['school_logo']) AND $info['school_logo'] != ''}>
                                            <div class="layui-inline" style="float:left;"><img src="<{$info['school_logo']}>" style="max-height:175px;"/></div>
                                        <{/if}>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                <div class="layui-inline">
                                  <label class="layui-form-label">生日</label>
                                  <div class="layui-input-inline">
                                    <input value="<{$info.birthday|default:''}>" type="text" name="birthday" id="birthday" lay-verify="date" placeholder="yyyy-mm-dd" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this})">
                                  </div>
                                </div>

                                <label class="layui-form-label">性别</label>
                                <div class="layui-input-inline">
                                  <{if isset($student)}>
                                  <input type="radio" name="sex" value="1" title="男" <{if $info['sex']==1 }>checked=""<{/if}> >
                                  <input type="radio" name="sex" value="2" title="女" <{if $info['sex']==2 }>checked=""<{/if}> >
                                  <{else}>
                                  <input type="radio" name="sex" value="1" title="男" checked="">
                                  <input type="radio" name="sex" value="2" title="女">
                                  <{/if}>


                                </div>
                              </div>


                                <div class="layui-form-item layui-form-text">
                                    <label class="layui-form-label">擅长领域</label>
                                    <div class="layui-input-inline" style="width:410px;">
                                        <textarea class="layui-textarea" name="speciality"><{$info.speciality|default:""}></textarea>
                                    </div>
                                </div>

                                <div class="layui-form-item layui-form-text">
                                    <label class="layui-form-label">个人介绍</label>
                                    <div class="layui-input-block">
                                        <textarea class="layui-textarea" name="content"><{$info.content|default:""}></textarea>
                                    </div>
                                </div>

                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
                                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                </div>

                            </form>

                        </div>
                        <!--star会员管理-->
                    </div>
                        <!--end tabMainCont-->
                </div>

            </div>
        </div>

    </div>
</div>
<{include file="footer.html"}>
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form();
        form.on('select(province)',function(data){
            var ii = layer.load();
            var province_code = data.value;
            $("#province_name").val($("#province option:selected").text())
            $("#city_name").val('');
            $("#area_name").val('');
            $("#city").html('<option value="">请选择城市</option>');
            $("#district").html('<option value="">请选择区域</option>');
            form.render('select');
            $.ajax({
                type: "GET",
                url: "/area/get_area_by_parent/"+province_code,
                dataType:"json",
                success: function(result){
                    var html ='';
                    $.each(result, function(i, obj) {
                        html += '<option value="'+obj.area_code+'">'+obj.area_name+'</option>';
                    });
                    $("#city").append(html);
                    form.render('select');
                    layer.close(ii);
                }
            });
        });

        form.on('select(city)',function(data){
            var ii = layer.load();
            var city_code = data.value;
            $("#city_name").val($("#city option:selected").text())
            $("#area_name").val('');
            $("#district").html('<option value="">请选择区域</option>');
            form.render('select');
            $.ajax({
                type: "GET",
                url: "/area/get_area_by_parent/"+city_code,
                dataType:"json",
                success: function(result){
                    var html ='';
                    $.each(result, function(i, obj) {
                        html += '<option value="'+obj.area_code+'">'+obj.area_name+'</option>';
                    });
                    $("#district").append(html);
                    form.render('select');
                    layer.close(ii);
                }
            });
        });

        form.on('select(district)',function(data){
            $("#area_name").val($("#district option:selected").text())
        });
    });
</script>
</body>
</html>
